home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
018a
/
what300.zip
/
SORTPICS.BAT
next >
Wrap
DOS Batch File
|
1991-04-30
|
818b
|
45 lines
@echo off
rem
rem SORTPICS.BAT
rem
rem Sort your pics using WHAT?format!
rem
rem Change to a directory containing an
rem assortment of graphics files in a
rem variety of different formats, and give
rem the command:
rem
rem for %f in (*.*) do sortpics %f
rem
rem The files are copied to different
rem directories depending on their format
rem
if not exist %1 goto :end
what %1 /q
if errorlevel 72 goto :end
if errorlevel 71 goto :TIFF
if errorlevel 70 goto :PCX
if errorlevel 67 goto :end
if errorlevel 66 goto :IMG
if errorlevel 65 goto :end
if errorlevel 64 goto :GIF
goto :end
:TIFF
copy %1 c:\graphics\tiff
del %1
goto :end
:PCX
copy %1 c:\graphics\pcx
del %1
goto :end
:IMG
copy %1 c:\graphics\img
del %1
goto :end
:GIF
copy %1 c:\graphics\gif
del %1
goto :end
:end